#!/bin/sh

sudo apt install -y build-essential cmake openscenegraph-plugin-osgearth libosgearth-dev libproj-dev libprotobuf-dev libpng-dev 
#export PATH=$PATH:/usr/local/lib64/
cmake -Bb -DCMAKE_BUILD_TYPE:STRING=Release .
cmake --build b
cd b
#启动容器 docker run -it --rm -v/d:/d --network=host -eDISPLAY=$DISPLAY ubuntu:20.04earth bash
#在Docker容器中运行必须增加以下环境变量
export MESA_GL_VERSION_OVERRIDE=3.3
./VelocityParticle
